In [1]:
import glob
from IPython.display import Audio, display, HTML
import matplotlib.pyplot as plt
import os
In [2]:
def show_generated_examples(paths):
    gen_paths = []
    for path in paths:
        gen_paths.extend(glob.glob(os.path.join(path, '*_gen.wav')))
    for i, gen_path in enumerate(gen_paths):
        if i != 0:
            display(HTML('<hr style="border:1px solid black;">'))
        ref_path = gen_path.replace('_gen', '_ref')
        display(HTML('<p>Generated example %d</p>' % (i + 1)))
        display(Audio(filename=gen_path))
        display(HTML('<p>Test set example %d</p>' % (i + 1)))
        display(Audio(filename=ref_path))

show_generated_examples(['generated/checkpoint_latest/dev', 'generated/checkpoint_latest/eval'])

Generated example 1

Your browser does not support the audio element.

Test set example 1

Your browser does not support the audio element.

Generated example 2

Your browser does not support the audio element.

Test set example 2

Your browser does not support the audio element.

Generated example 3

Your browser does not support the audio element.

Test set example 3

Your browser does not support the audio element.

Generated example 4

Your browser does not support the audio element.

Test set example 4

Your browser does not support the audio element.

Generated example 5

Your browser does not support the audio element.

Test set example 5

Your browser does not support the audio element.

Generated example 6

Your browser does not support the audio element.

Test set example 6

Your browser does not support the audio element.

Generated example 7

Your browser does not support the audio element.

Test set example 7

Your browser does not support the audio element.

Generated example 8

Your browser does not support the audio element.

Test set example 8

Your browser does not support the audio element.

Generated example 9

Your browser does not support the audio element.

Test set example 9

Your browser does not support the audio element.

Generated example 10

Your browser does not support the audio element.

Test set example 10

Your browser does not support the audio element.

Generated example 11

Your browser does not support the audio element.

Test set example 11

Your browser does not support the audio element.

Generated example 12

Your browser does not support the audio element.

Test set example 12

Your browser does not support the audio element.

Generated example 13

Your browser does not support the audio element.

Test set example 13

Your browser does not support the audio element.

Generated example 14

Your browser does not support the audio element.

Test set example 14

Your browser does not support the audio element.

Generated example 15

Your browser does not support the audio element.

Test set example 15

Your browser does not support the audio element.

Generated example 16

Your browser does not support the audio element.

Test set example 16

Your browser does not support the audio element.

Generated example 17

Your browser does not support the audio element.

Test set example 17

Your browser does not support the audio element.

Generated example 18

Your browser does not support the audio element.

Test set example 18

Your browser does not support the audio element.

Generated example 19

Your browser does not support the audio element.

Test set example 19

Your browser does not support the audio element.

Generated example 20

Your browser does not support the audio element.

Test set example 20

Your browser does not support the audio element.
In [ ]: